//
//  RegViewController.m
//  06_Work
//
//  Created by dllo on 16/7/21.
//  Copyright © 2016年 yh. All rights reserved.
//

#import "RegViewController.h"
#import "ImageTextView.h"
#import "ViewController.h"
#define WIDTH self.view.frame.size.width
#define HEIGHT self.view.frame.size.height


@interface RegViewController ()

@end

@implementation RegViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor redColor];
    self.view.backgroundColor = [UIColor whiteColor];
    UIView *backView = [ImageTextView createBackViewFrame:self.view.frame];
    [self.view addSubview:backView];
    
    UIImageView *logoImageView = [ImageTextView createLogeViewFrame:CGRectMake(WIDTH / 2 - 60, 100, 120, 200)];
    [self.view addSubview:logoImageView];
    
    UIView *textFieldView = [ImageTextView createRegTextFieldFrame:CGRectMake(10, 350, WIDTH - 20, 82)];
    [self.view addSubview:textFieldView];
    
    UIView *delegateView = [ImageTextView createDelegateFrame:CGRectMake(0, 440, WIDTH, 40)];
    [self.view addSubview:delegateView];
    
    UIButton *regButton = [ImageTextView createRegRegButtonFrame:CGRectMake(10, 500, WIDTH - 20 , 40)];
    [self.view addSubview:regButton];
    
    UIButton *backButton = [ImageTextView createBackButtonFrame:CGRectMake(10, 560, WIDTH - 20 , 40)];
    [backButton addTarget:self action:@selector(backClick:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:backButton];
}

- (void)backClick:(UIButton *)button {
    [self.navigationController popToRootViewControllerAnimated:YES];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
